package com.zm.damai.damaiindex.web.feign;

import com.zm.damai.damaiindex.web.feign.impl.OtherActionImpl;
import com.zm.damai.entity.DmProduct;
import com.zm.damaicommon.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "damai-other",fallback = OtherActionImpl.class)
public interface OtherAction {
    @GetMapping("other")
    String way();

    @RequestMapping("hot")
    List<Map<String ,Object>> hot ();

    @RequestMapping("/dmProduct/querySecKillProduct")
    List<DmProduct> querySecKillProduct();

    @RequestMapping("/dmProduct/updateSeckillProduct")
    Result updateSeckillProduct(List<DmProduct> productList);
}
